import request from "@/utils/request";

// 查询用户触发事件记录列表
export function listHairTriggerEvent(query) {
  return request({
    url: "/business/hairTriggerEvent/list",
    method: "get",
    params: query,
  });
}

export function listHairTriggerEventAll(query) {
  return request({
    url: "/business/hairTriggerEvent/allList",
    method: "get",
    params: query,
  });
}

// 查询帖子分享每日数据
export function listPostShareDayBoard(query) {
  return request({
    url: "/business/shareLogs/shareDayBoard",
    method: "get",
    params: query,
  });
}

// 查询帖子分享总数据
export function listPostShareDayBoardAll(query) {
  return request({
    url: "/business/shareLogs/shareAllBoard",
    method: "get",
    params: query,
  });
}

// 查询用户触发事件记录详细
export function getHairTriggerEvent(id) {
  return request({
    url: "/business/hairTriggerEvent/" + id,
    method: "get",
  });
}

// 每日运营数据
export function dailyOperatingDataApi(query) {
  return request({
    url: "/business/operation/getDailyOperatingData",
    method: "get",
    params: query,
  });
}

// 查询运营数据汇总
export function dailyOperatingResultsApi(query) {
  return request({
    url: "/business/operation/getDailyOperatingResults",
    method: "get",
    params: query,
  });
}

// 查询到店价值
export function arrivalValueApi(query) {
  return request({
    url: "/business/operation/arrivalValue",
    method: "get",
    params: query,
  });
}

// 查询周期内到店价值数据
export function periodArrivalValueApi(query) {
  return request({
    url: "/business/operation/getPeriodArrivalValue",
    method: "get",
    params: query,
  });
}

// 查询到店率
export function dailyArrivalRateApi(query) {
  return request({
    url: "/business/operation/getDailyArrivalRate",
    method: "get",
    params: query,
  });
}

// 查询周期内到店率数据
export function periodArrivalRateApi(query) {
  return request({
    url: "/business/operation/getPeriodArrivalRate",
    method: "get",
    params: query,
  });
}

// 查询发型库每日调用数据
export function dailyCallListApi(query) {
  return request({
    url: "/business/aiOperational/dailyCallList",
    method: "get",
    params: query,
  });
}

// 查询发型库每日调用数据
export function dailyAllCallListApi(query) {
  return request({
    url: "/business/aiOperational/allCallDataList",
    method: "get",
    params: query,
  });
}

// 新增用户触发事件记录
export function addHairTriggerEvent(data) {
  return request({
    url: "/business/hairTriggerEvent",
    method: "post",
    data: data,
  });
}

// 修改用户触发事件记录
export function updateHairTriggerEvent(data) {
  return request({
    url: "/business/hairTriggerEvent",
    method: "put",
    data: data,
  });
}

// 删除用户触发事件记录
export function delHairTriggerEvent(id) {
  return request({
    url: "/business/hairTriggerEvent/" + id,
    method: "delete",
  });
}

//查询查询门店核销数据
export function shopCancelListApi(query) {
  return request({
    url: "/business/hairTeacherSubscribe/shopCancelList",
    method: "get",
    params: query,
  });
}

// 查询Ai生成分享每日数据
export function shareAiDayData(query) {
  return request({
    url: "/business/aiPromotionData/shareDayBoard",
    method: "get",
    params: query,
  });
}

// 查询Ai生成分享总数据
export function shareAllBoard(query) {
  return request({
    url: "/business/aiPromotionData/shareAllBoard",
    method: "get",
    params: query,
  });
}
